package spring.cloud.tasks.tasks_manager.task_item_assign;

import spring.cloud.tasks.common.task_item_allot.Executor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PreferExecutorSettings {
    // 是否配置优先节点的任务的映射
    public Map<String, Boolean> taskIdToIsConfiguredPreferExecutorIdListMap = new HashMap<String, Boolean>();
    // 优先节点的任务的映射
    public Map<String, List<String>> taskIdToConfiguredPreferExecutorIdListMap = new HashMap<String, List<String>>();
    // 获取shardList中的任务能够被接管的executors
    public Map<String, List<Executor>> taskIdToOwnTrafficOnlineExecutorListMap = new HashMap<>();
}
